package com.tuda.system.service;

import com.tuda.common.core.domain.AjaxResult;
import com.tuda.system.domain.TudaOrder;
import com.tuda.system.domain.TudaOrderTransfer;
import com.tuda.system.model.result.OrderTotalAmountResult;

import java.math.BigDecimal;
import java.util.List;

/**
 * @ClassName ITuDaFinanceService
 * @Description TODO
 * @Author Admin
 * @Date 2023/7/31 11:55
 * @Version 1.0
 **/
public interface ITuDaFinanceService {

    List<TudaOrderTransfer> detailed(String ids);


    List<TudaOrderTransfer> detailedInfoByHeadPhone(String headPhone, String orderId);

    /**
     * 查询货运订单
     *
     * @param id 货运订单主键
     * @return 货运订单
     */
    TudaOrder selectTudaOrderById(Long id);

    /**
     * 查询货运订单列表
     *
     * @param tudaOrder 货运订单
     * @return 货运订单集合
     */
    List<TudaOrder> selectTudaOrderList(TudaOrder tudaOrder);

    OrderTotalAmountResult selectTotalAmount(TudaOrder tudaOrder);

    /**
     * 修改货运订单
     *
     * @param tudaOrder 货运订单
     * @return 结果
     */
    int updateTudaOrder(TudaOrder tudaOrder);

    int refund(String id);

    int orderCompletion(String id);

    int settlement(String ids);

    int salesman(String ids);

    List<TudaOrder> salesmanList(String ids);

    List<TudaOrderTransfer> salesmanTransferList(String ids);

    /**
     * 分公司人员运单列表
     * @param tudaOrder
     * @return
     */
    List<TudaOrder> queryCompanyOrderListByPhone(TudaOrder tudaOrder);

    int updateOrderFee(Long orderId, String feeState, String feeName, String notes, BigDecimal amount, String feeAmount);
}
